DEFINES= -DLINUX
FLAG= -g ${DEFINES}
CC=gcc
INCLUDE= -I/home/liq/app/include
LIB= -L/home/liq/app/lib

all: hello file proc thread sock client event workqueue workqueue2


hello: hello.c
	${CC} ${FLAG} hello.c -o hello


file: file.c
	${CC} ${FLAG} file.c -o file

proc: proc.c
	${CC} ${FLAG} proc.c -o proc

thread: thread.c
	${CC} ${FLAG} thread.c -o thread -lpthread
sock: sock.c
	${CC} ${FLAG} sock.c -o sock 
client: client.c
	${CC} ${FLAG} client.c -o client 

event: event.c
	${CC} ${FLAG} ${INCLUDE} event.c ${LIB} -levent -o event 

workqueue: workqueue.c
	${CC} ${FLAG} ${INCLUDE} workqueue.c ${LIB} -lpthread -o workqueue 


workqueue2: workqueue2.c
	${CC} ${FLAG} ${INCLUDE} workqueue2.c ${LIB} -lpthread -o workqueue2 
